import React, { Component } from 'react'
import My_context from '../utils/My_context'
export class Index2 extends Component {
    render() {
        return (
            <div>
                Index2
                <My_context.Consumer>
                    {
                        (res)=>{
                            console.log(res);
                           
                            return <p>{ res.name    }</p>
                        }
                    }
                </My_context.Consumer>
            </div>
        )
    }
}

export default Index2
